package com.nulldev.util.lang.csv;

import com.nulldev.util.io.FileUtil;
import com.nulldev.util.other.ArrayUtils;
import com.nulldev.util.promise.Promiser;
import com.nulldev.util.promise.noresult.NoResultPromise;

public class CSVDemo {

	public static void main(String[] args) throws Exception {
		final CSV csv = new CSV();
		Promiser.promise(new NoResultPromise() {
			
			@Override
			public void run() throws Throwable {
				csv.read(FileUtil.safeCreate("[redacted]"));
				ArrayUtils.printLln(csv.read(0));
			}
			
			@Override
			public void error(Throwable throwable) {
				throwable.printStackTrace();
			}
		});
	}

}
